﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Entity.Res_Item>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Res_Item
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Res_Item</h2>
    <table>
        <tr>
            <th>
            </th>
            <th>
                CategoryID
            </th>
            <th>
                VID
            </th>
            <th>
                ID
            </th>
            <th>
                Name
            </th>
            <th>
                Feature
            </th>
            <th>
                ClassHour
            </th>
            <th>
                Info
            </th>
        </tr>
        <% foreach (var item in Model)
           { %>
        <tr>
            <td>
                <%: Html.ActionLink("编辑", "Details", new { id=item.ID })%>
                |
            </td>
            <td>
                <%: item.CategoryID %>
            </td>
            <td>
                <%: item.VID %>
            </td>
            <td>
                <%: item.ID %>
            </td>
            <td>
                <%: item.Name %>
            </td>
            <td>
                <%: item.Feature %>
            </td>
            <td>
                <%: item.ClassHour %>
            </td>
            <td>
                <%: item.Info %>
            </td>
        </tr>
        <% } %>
    </table>
    <p>
        <%: Html.ActionLink("Create New", "Create") %>
    </p>
</asp:Content>
